package com.software.questioncenter.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Author: grx
 * Description: 题解Answer实体类
 */
@Entity
@Data
public class Answer {
    @Id
    private String id; // 主键id
    private Integer questionId; // 题目id,外键
    private String userId; // 用户id,外键
    private String content; // 题解内容
}
